<div class="page-box">
    <#if !page.firstPage>
    <a class="page-next" href="javascript:void(0)"  onclick="_queryPage('1')">首页</a>
    <a class="page-next" href="javascript:void(0)" onclick="_queryPage('${page.pageNum-1}')">上一页</a>
    </#if>

    <#list page.showNums as n>
    <#if page.pageNum == n>
    <a class="page-cur" href="javascript:void(0)" >${n}</a>
    <#else>
    <a class="page-num" href="javascript:void(0)"  onclick="_queryPage('${n}')">${n}</a>
    </#if>
    </#list>

    <#if !page.lastPage>
    <a class="page-next" href="javascript:void(0)" onclick="_queryPage('${page.pageNum+1}')">下一页</a>
    <a class="page-next" href="javascript:void(0)" onclick="_queryPage('${page.pageTotalCount}')">尾页</a>
    </#if>

    <input type="hidden" name="pageNum" id="pageNum" value="1">
    <script type="text/javascript">
        function _queryPage(n){
            if(n == undefined){
                n = 1;
            }
            $('#pageNum').val(n);
            $('#_queryForm').submit();
        }
    </script>

</div>